//
//  CommonAPI.h
//  smile_text
//
//  Created by lanou3g on 15-3-25.
//  Copyright (c) 2015年 线线工厂. All rights reserved.
//

#import <Foundation/Foundation.h>
//***************************************************************
// ****************需要更改为自定义的model类的名字*********************


typedef void (^DataBlock)(id data);

//解析网址

//首页笑话网址
#define FIRSTJOKE @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/joke/p/1/markId/0/date/"
//下拉笑话网址
#define DOWNJOKE @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/joke/lastTime/"
//选日期笑话网址
#define DATEJOKE @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/joke/p/1/markId/0/date/"


//首页搞笑图文网址
#define FIRSTIMG @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/qutu/p/1/markId/0/date/"
//下拉搞笑图文网址
#define DOWNIMG @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/qutu/lastTime/"
//选日期搞笑图文网址
#define DATEIMG  @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/qutu/p/1/markId/0/date/"


//首页美女图片网址
#define FIRSTGIRL @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/mm/p/1/markId/0/date/"
//下拉美女图片网址
#define DOWNGIRL @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/mm/lastTime/"
//选日期美女图片网址
#define DATEGIRL   @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/mm/p/1/markId/0/date/"


//首页视频网址
#define FIRSTVIDEO @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/video/p/1/markId/0/date/"
//下拉视频网址
#define DOWNVIDEO @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/video/lastTime/"
//选日期视频网址
#define DATEVIDEO @"http://xiaoliao.sinaapp.com/index.php/Api369/index/pad/0/sw/1/cid/video/p/1/markId/0/date/"

@interface CommonAPI : NSObject

//返回首页笑话资源
+ (void)firstJokeListData:(DataBlock)data;
//返回下拉笑话资源
+ (void)downJokeListstring:(NSString*)aString Data:(DataBlock)data;
//返回日期笑话资源
+ (void)dateJokeListstring:(NSString *)aString Data:(DataBlock)data;


//返回首页搞笑图文资源
+ (void)firstImgListData:(DataBlock)data;
//返回下拉搞笑图文资源
+ (void)downImgListstring:(NSString*)aString Data:(DataBlock)data;
//返回日期搞笑图文资源
+ (void)dateImgListstring:(NSString*)aString Data:(DataBlock)data;


//返回首页美女图片资源
+ (void)firstGirlListData:(DataBlock)data;
//返回下拉美女图片资源
+ (void)downGirlListstring:(NSString*)aString Data:(DataBlock)data;
//返回日期美女图片资源
+ (void)dateGirlListstring:(NSString*)aString  Data:(DataBlock)data;


//返回首页视频资源
+ (void)firstVideoListData:(DataBlock)data;
//返回下拉视频资源
+ (void)downVideoListstring:(NSString*)aString Data:(DataBlock)data;
//返回日期视频资源
+ (void)dateVideoListstring:(NSString*)aString Data:(DataBlock)data;
//返回萌宠资源
+ (void)firstPetListNumber:(NSInteger)num Data:(DataBlock)data;




@end
